搜索资源列表
base64src
- C++ Base64编码/解码源代码 inline int Base64Encode(char * base64code, const char * src, int src_len = 0) inline int Base64Decode(char * buf, const char * base64code, int src_len = 0) 以上两个函数内联定义在base64.h中,使用时include \"base64.h\" 即可,编码后的长度一般比原文多占1/3的存储空间,
spidmadriver
- 本驱动程序在linux2.6.17中测试通过。yangxing msn:lelma_yx@hotmail.com 希望对SPI操作的朋友有所帮助。 一、工作方式: 从设备:SPI为MASTER模式 S3C2410:SPI为SLAVE模式+DMA 二、工作流程 1.S3C2410从接收:当从设备发送数据时,S3C2410利用DMA方式收数,收到指定长度的数据,则进入DMA中断,将接收的数据拷出。 2.S3C2410从发送:当S3C2410需要发送,首先由RTS请求
AVRusart
- avr应用有关使用注意事项如下 1 在使用例子程序之前将库文件libslavr.a 拷贝到ICCAVR 安装目录下的库文件目录中 即...\\LIB\\目录将头文件slavr.h 拷贝到头文件目录即...\\include\\目录 2 如果想使用库文件中的函数那么设置如下 1) 在文件中应使用 \"#include <slavr.h>\"包含slavr.h 头文件 2) 在工程选项中的Additional LIB 一栏中填入\"slavr\" 使用附加的libsl
20070305_chungyu_G711_v2
- 使用mediastreamer2的g711common.h. unsigned char s16_to_alaw(int pcm_val). 将16bit的原始样本encode 成为8bit的a-law码.-use mediastreamer2 the g711common.h. Unsign ed char s16_to_alaw (int pcm_val). to the original 16bit samples The encode into a 8 bit-law code.
shu2
- 2.[问题描述] 编写递归算法,在二叉树中求位于先序序列中第K个位置的结点 [输入] 按照先序序列的顺序输入该结点的内容。其输入abd eh cf i g 。输入要求的位置 [输出] 若二叉树不空,按先序序列输出,求出所求位置的结点 [存储结构] 采用二叉表存储 [算法的基本思想] 采用递归方法建立和遍历二叉树。首先建立二叉树的根结点,然后建立其左右子树,直到空子树为止,先序遍历二叉树时,先遍厉左子树,后遍厉右子树,最后访问根结点并计算出二叉树中叶子结点
ucGUI的16_16点阵字库
- 应用于ucGUI的16*16点阵字库文件 只要将该文件加入ucGUI的工程中, 再在GUI.H中如下声明: extern const GUI_FONT GUI_Font6x8 ...... extern const GUI_FONT GUI_Font_HZ16x16 //汉字字体 即可使用. 使用实例: static void DemoHZ(void) { const char str[] = GUI_UC_START\"中国人民万岁\"GUI_UC_END /* Set ShiftJIS fo
一个判断远程主机存活程序代码
- 一个判断远程主机存活程序代码(ping) #include #include #include #include #include "winsock.h" #pragma comment(lib,"Ws2_32"); #define SEND_SIZE 32 #define PACKET_SIZE 4096 #define ICMP_ECHO 8 #define ICMP_ECHOREPLY 0 struct icmp {
51单片连tcs230的源程序
- 51单片连tcs230的源程序,绝对原创,可以记忆颜色。 #define uchar unsigned char #include <reg52.h> #include<math.h> sbit S0=P1^7 sbit S1=P1^0 //端口定义 sbit S2=P1^1 sbit S3=P1^2 sbit OE=P1^3 sbit OUT=P3^4 //频率从TO口输入 sbit key0=P1^5 sbit LED=P1^6 s
nokia 3310 lcd 驱动源代码
- nokia 3310 lcd #include "3310.h" //global variable for remembering where to start writing the next text string on 3310 LCD unsigned char char_start /*-----------------------------------------------------------------
normaldistribution
- #include <stdlib.h> #include <stdio.h> #include <time.h> #include <fstream> #include <iostream> using namespace std struct Code { float a char s } Code cc[8]={{0.25, a },{0.3,
chip1
- VB遥控播放器红外遥控解码 #include <regX52.h> #define c(x) (x*110592/120000) sbit Ir_Pin=P3^2 sbit beep=P2^1 //sbit RELAY=P2^0 #define INBUF_LEN 4 //数据长度 unsigned char inbuf1[INBUF_LEN]={ 0 , 0 , 0 , 0 } //发送缓冲区 unsigned char inb
pvpvc
- 遥控解码通过电脑串口显示 /* 晶振:11.0569MHz */ #include <REGX52.h> #define uchar unsigned char uchar data IRcode[4] //定义一个4字节的数组用来存储代码 uchar CodeTemp //编码字节缓存变量 uchar i,j,k //延时用的循环变量 sbit IRsignal=P3^2 //HS0038接收头OUT端直接连P3.2(INT0) /******
BF533_SST_Flash_Driver
- 2009.02.13 (Chiron.ylq) --- --- --- --- --- 该工程用于Analog Devices VisualDSP++ V5.0开发环境下,烧写Silicon Storage Technology公司SST39VF512/010/020/040系列Flash的Program Load Driver。 1. 文件结构 SST39VFXXX.dlb SST39VF512/010/020/040 Flash操作驱动 BF
Tool
- 一些转换代码,hex to char,char to hex-Some of the conversion code, hex to char, char to hex
image
- 并行计算程序 Descr iption: This program blurs an image file in a parallelized computation The root process reads the file and distributes a part of the image file to other processes. Each process makes the filter operation on the part of the image
123456
- 模拟实现单机目录FAT的文件系统 基本思路:用二进制文件空间模拟磁盘空间,用文件块操作模拟磁盘块操作。 基本设计要求:1、实现如下文件系统功能(过程或函数): a、 打开文件系统 FILE *OPENSYS(char *filename) b、 关闭文件系统 int CLOSESYS(FILE *stream) c、 显示目录 void LISTDIR(void) d、 建立文件 int FCREATE(char *filename) e、 删除文件 int
ppm
- 文件说明: function.h 函数申明 function.cpp 函数实现 main.cpp 函数调用 函数说明: ppmtoppm(char* in, char* out) 读入ppm24位彩色图像,输出ppm24位灰度图像 ppmtopgm(char* in, char* out) 读入ppm24位彩色图像,输出pgm256色灰度图像 ppmtobmp(char* in, char* out) 读入ppm24位彩色图像,输出bmp24位
sht10-c51
- SHT10数字温湿度传感器的读写程序 #include <reg51.h> #include <intrins.h> #define uchar unsigned char #define uint unsigned int uchar wendu,shidu,air //定义要发送的温度和湿度 空气质量-SHT10 digital temperature and humidity sensors to read and write pr
client
- 服务器端口监听,实现端口的实时监听-#include <winsock2.h> #include <stdio.h> #include <stdlib.h> int TCount = 0 //MAX Thread numbers int ThreadNu
MD5lib
- /* 带密钥的md5算法库md5lib.h共有下列函数: char* MDString (char *) 输入任意一个字符串,经过md5算法处理后,返回结果:一个定长(32个字符)字符串 char* MDFile (char *) 输入任意一个文件名,文件内容经过md5算法处理后,返回结果:一个定长(32个字符)字符串 char* hmac_md5(char* text, char* key) 输入任意一个字符串text,和一个用做密钥